package com.boot.project.core.model.system.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @description: 修改密码时的实体类
 * @author: tsing
 * @create: 2021-01-24 15:19
 */
@Data
public class UserPasswordDto {

    @NotNull
    private Long id; // 用户id

    private String oldPassword; // 旧密码

    @Pattern(regexp = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$")
    private String newPassword; // 新密码
}
